package fr.auzaiphe.commun.reseau;

import fr.auzaiphe.admin.model.AdminModel;

public class PacketSayDeconnexion extends Packet
{

	private String nom;
	private String password;
	private int tempsRestant;
	
	public PacketSayDeconnexion (String pNom, String pPassword, int pTempsRestant)
	{
		this.nom = pNom;
		this.password = pPassword;
		this.tempsRestant = pTempsRestant;
	}
	
	@Override
	public void action()
	{
		System.out.println("DECONNECT2");
		if(this.model instanceof AdminModel) 
			((AdminModel)this.model).deconnecterClient(this.nom, this.password, this.tempsRestant);
	}

}
